<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户新增</title>
<link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/select.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="__PUBLIC__/kindeditor/examples/index.css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/select-ui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/kindeditor/kindeditor.js"></script>

<style>
	form {
		margin: 0;
	}
	textarea {
		display: block;
	}
	span.show {color:red;font-weight:bold;display:inline}
	#tab1{  margin-left:auto;
  			margin-right:auto;
			width:50%;
   }
   b{color:#000;}
</style>
<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
    KE.show({
		id : 'content',
	
	});
    $(document).ready(function(e) {
        $(".select1").uedSelect({
    		width : 245			  
    	});
    	$(".select2").uedSelect({
    		width : 167  
    	});
    	$(".select3").uedSelect({
    		width : 100
    	});
    });
    
    function check(){
		var uname = document.getElementById('uname');
		var upwd = document.getElementById('upwd');
		var upwd_qz = document.getElementById('upwd_qz');
		
		var uname_show = document.getElementById('uname_show');
		var upwd_show = document.getElementById('upwd_show');
		var upwd_qz_show = document.getElementById('upwd_qz_show');
		if(uname.value=="")  {  	
			uname_show.innerHTML="用户名不能为空";
			uname.focus();
			return false;	 
		}else if(upwd.value=="")  {  	
			upwd_show.innerHTML="密码不能为空";
			upwd.focus();
			return false; 
  		}else if(upwd_qz.value=="")  {  	
			upwd_qz_show.innerHTML="确认密码不能为空";
			upwd_qz.focus();
			return false; 
  		}else if(upwd.value != upwd_qz.value)  {  	
			upwd_qz_show.innerHTML="两次输入密码不一致，请重新输入";
			upwd_qz.focus();
			return false; 
  		}else{
  			return true;
  		}
	}
</script>
</head>
<body>
	<div class="place">
	    <span>位置：</span>
	    <ul class="placeul">
		    <li><a href="{:url('admin/Index/index')}" target="_parent">首页</a></li>
		    <li><a href="{:url('admin/User/index')}" target="rightFrame">信息管理</a></li>
		    <li>信息添加</li>
	    </ul>
    </div>   
    <div class="formbody"> 
	    <div id="usual1" class="usual">   
		    <div class="itab">
			  	<ul> 
			    	<li><a href="#tab1" class="selected">信息添加</a></li> 
			  	</ul>
		    </div> 
		  	<div id="tab1" class="tabson">
		  		<form name=form1 action="{:url('admin/User/add')}"   method="post" enctype="multipart/form-data">    
			    	<input type="hidden" name="cid" value="{$user['cid']}" />
			    	<input type="hidden" name="status" value="1" />
			    	<input type="hidden" name="fid"  value="{$user['uid']}" />
			    <ul class="forminfo" >
				    <li >
				    	<label>用户名<b>:</b></label>
				    	<input name="uname" id="uname" type="text" class="dfinput" style="width:200px;"/>&nbsp;&nbsp;<span id='uname_show' class='show' ></span>
				    </li> 
				    <li>
				    	<label>密码<b>:</b></label>
				    	<input name="upwd" id="upwd" type="password" class="dfinput" style="width:244px;"/>&nbsp;&nbsp;<span id='upwd_show' class='show'></span>
				    </li> 
				    <li>
				    	<label>确认密码<b>:</b></label>
				    	<input name="upwd_qz" id="upwd_qz" type="password" class="dfinput" style="width:244px;"/>&nbsp;&nbsp;<span id='upwd_qz_show' class='show'></span>
				    </li> 
				    <li>
				    	<label>所属上级<b>:</b></label>
				    	<input name="fid_t" id='fid_t' type="text" class="dfinput" value="{$user['uname']}" style="width:244px;" readonly="readonly"/>&nbsp;&nbsp;<span id='fid_show' class='show'>
				    		{empty name="$user['uid']"}
								该用户为最高级
							{/empty}
				    	</span>
				    </li> 
				    <li>
				    	<label>所属层级<b>:</b></label>
				    	<input name="level" type="text" class="dfinput" value="{$nowLever}" style="width:100px;" readonly="readonly"/> 层
				    </li> 
				     <li>
				    	<label>充值金额<b>:</b></label>
				    	<input name="money" type="text" class="dfinput" value="1000" style="width:150px;" readonly="readonly"/> 元
				    </li> 
				    <li>
				    	<label>微信账号<b>:</b></label>
				    	<input name="weixin" type="text" class="dfinput" style="width:244px;"/>
				    </li> 
				    <li>
				    	<label>支付宝账号<b>:</b></label>
				    	<input name="zfb" type="text" class="dfinput" style="width:244px;"/>
				    </li> 
				    <li>
				    	<label>银行卡号<b>:</b></label>
				    	<input name="yhk" type="text" class="dfinput" style="width:244px;"/>
				    </li> 
					    <li>
					        <label>&nbsp;</label><input name="submit" type="submit" class="btn" onclick="return check()" value="提交"/>
							
					    </li>

			    </ul>
				</form>
		    </div> 
		    
		    
		  	<div id="tab2" class="tabson">
		    
		    </div>  
	       
		</div> 
	 
		<script type="text/javascript"> 
	      $("#usual1 ul").idTabs(); 
	    </script>
	    
	    <script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
		</script>
</div>


</body>

</html>